package com.lzxuni.modules.dataAcquisition.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 追溯链条-环节
 * </p>
 *
 * @author wzx
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_chain_link")
public class ChainLink implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private String id;

    /**
     * 链条id
     */
    private String chainId;

    private String parentId;

    /**
     * 环节名称
     */
    private String linkName;

    /**
     * 环节代码
     */
    private String linkCode;

    /**
     * 行业类别
     */
    private String industryCategory;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(exist = false)
    private String chainName;

    @TableField(exist = false)
    private List<ChainLinkProcess> processList;

}
